// @charset "utf-8";

@import url(./public.less);

header {
  font-size: 12px;
  border-bottom: 2px solid #ff6700;
  background: #fff;
  color: #b0b0b0;
  position: relative;
  z-index: 20;
  height: 50px;
  line-height: 50px;
  padding: 25px;
  .wrap {
    height: 50px;
    .logo {
      float: left;
      margin-right: 40px;
      img {
        width: 48px;
        height: 48px;
      }
    }
    .mycart {
      float: left;
      font-size: 26px;
      color: #424242;
    }
    .log-reg {
      float: right;
      font-size: 12px;
      a {
        cursor: pointer;
        margin: 0 5px;
        color: #424242;
      }
    }
  }
}

main {
  background-color: #f5f5f5;
  padding: 65px 0 130px;
  .wrap {
    .cart-top {
      height: 273px;
      padding-left: 558px;
      background: url(https://cdn.cnbj1.fds.api.mi-img.com/staticsfile/cart/cart-empty.png)
        no-repeat 124px 0;
      color: #b0b0b0;
      overflow: hidden;
      .cart-top-text {
        margin-top: 100px;
        h1 {
          margin-bottom: 5px;
        }
      }
      a {
        width: 170px;
        height: 48px;
        line-height: 48px;
        margin: 20px 10px 0 0;
        border: #ff6700 1px solid;
        color: #ff6700;
        display: inline-block;
        text-align: center;
        cursor: pointer;
        &:first-of-type {
          background-color: #ff6a00;
          color: white;
          &:hover {
            background-color: #e85e02;
          }
        }
      }
    }
    .cart-cart {
      display: none;
      font-size: 14px;
      .cart-cart-header {
        height: 70px;
        line-height: 70px;
        padding-right: 26px;
        color: #424242;
        background-color: #fff;
        border-bottom: 1px solid silver;
        .check {
          float: left;
          position: relative;
          width: 110px;
          height: 70px;
          line-height: 70px;
          text-align: center;
          input {
            appearance: none;
            border: 1px solid silver;
            border-radius: 4px;
            width: 20px;
            height: 20px;
            margin-right: 5px;
            outline: none;
            vertical-align: sub;
            cursor: pointer;
            &:hover + i {
              display: block;
              color: #757575;
            }
            &:checked {
              background: #ff5c00;
              border: 1px solid #ff5c00;
            }
            &:checked + i {
              display: block;
            }
          }
          i {
            position: absolute;
            left: 25px;
            top: 0px;
            color: white;
            font-size: 14px;
            width: 18px;
            height: 18px;
            border-radius: 4px;
            display: none;
            user-select: none;
            pointer-events: none;
          }
          span {
            margin-left: 10px;
          }
        }
        .name {
          float: left;
          width: 380px;
          height: 70px;
          line-height: 70px;
          padding-left: 120px;
        }
        .price {
          float: left;
          width: 140px;
          height: 70px;
          line-height: 70px;
          padding-right: 18px;
          text-align: center;
        }
        .num {
          float: left;
          width: 150px;
          height: 70px;
          line-height: 70px;
          text-align: center;
        }
        .subtotal {
          float: left;
          width: 120px;
          height: 70px;
          line-height: 70px;
          padding-right: 80px;
          text-align: right;
        }
        .action {
          float: left;
          width: 80px;
          height: 70px;
          line-height: 70px;
          text-align: center;
        }
      }
      .cart-cart-content {
        overflow: hidden;
        color: #424242;
        padding-bottom: 25px;
        background-color: #fff;
        border-bottom: 1px solid silver;
        .cart-cart-box {
          padding: 25px 0;
          border-bottom: 1px solid silver;
          padding-right: 26px;
          overflow: hidden;
          .product {
            .check {
              float: left;
              position: relative;
              width: 110px;
              height: 86px;
              line-height: 86px;
              text-align: center;
              input {
                appearance: none;
                border: 1px solid silver;
                border-radius: 4px;
                width: 20px;
                height: 20px;
                margin-right: 5px;
                outline: none;
                vertical-align: sub;
                cursor: pointer;
                &:hover + i {
                  display: block;
                  color: #757575;
                }
                &:checked {
                  background: #ff5c00;
                  border: 1px solid #ff5c00;
                }
                &:checked + i {
                  display: block;
                }
              }
              i {
                position: absolute;
                left: 25px;
                top: 0px;
                color: white;
                font-size: 14px;
                width: 18px;
                height: 18px;
                border-radius: 4px;
                display: none;
                user-select: none;
                pointer-events: none;
              }
              span {
                margin-left: 10px;
                width: 28px;
                display: inline-block;
              }
            }
            .img {
              float: left;
              width: 120px;
              height: 86px;
              line-height: 86px;
              img {
                width: 80px;
                height: 80px;
              }
            }
            .name {
              float: left;
              width: 380px;
              height: 86px;
              line-height: 86px;
              font-size: 18px;
            }
            .price {
              float: left;
              width: 140px;
              height: 86px;
              line-height: 86px;
              padding-right: 18px;
              text-align: center;
            }
            .num {
              float: left;
              width: 150px;
              height: 86px;
              line-height: 86px;
              text-align: center;
              a {
                display: inline-block;
                width: 38px;
                height: 38px;
                line-height: 38px;
                color: #757575;
                font-size: 20px;
                border: 1px solid silver;
                vertical-align: middle;
                cursor: pointer;
                &:nth-of-type(1) {
                  border-right: none;
                }
                &:nth-of-type(2) {
                  border-left: none;
                }
              }
              input {
                display: inline-block;
                height: 38px;
                width: 72px;
                line-height: 38px;
                text-align: center;
                appearance: none;
                border: 1px solid silver;
                border-left: none;
                border-right: none;
                vertical-align: middle;
                outline: none;
              }
            }
            .subtotal {
              float: left;
              width: 120px;
              height: 86px;
              line-height: 86px;
              padding-right: 80px;
              text-align: right;
              color: #ff6700;
            }
            .action {
              float: left;
              width: 80px;
              height: 86px;
              padding-top: 35px;
              text-align: center;
              a {
                width: 20px;
                height: 20px;
                color: #757575;
                display: inline-block;
                text-align: center;
                background-color: rgba(255, 0, 0, 0);
                border-radius: 50%;
                transition: all 0.2s;
                &:hover {
                  background-color: rgb(255, 0, 0);
                  color: white;
                  border-radius: 50%;
                }
              }
            }
          }
          .extra {
            height: 97px;
            margin-left: 100px;
            background-color: #f5f5f5;
            margin-bottom: 5px;
            clear: both;
            .img {
              float: left;
              padding: 15px 52px 15px 20px;
              img {
                width: 60px;
                height: 60px;
              }
            }
            .name {
              float: left;
              width: 380px;
              height: 67px;
              font-size: 18px;
              padding: 15px 0;
              h5 {
                height: 25px;
                margin: 8px 0;
                font-weight: normal;
                font-size: 16px;
                display: block;
              }
              p {
                height: 18px;
                font-size: 12px;
                color: silver;
              }
            }
            .price {
              float: left;
              width: 140px;
              height: 97px;
              line-height: 97px;
              padding-right: 18px;
              text-align: center;
            }
            .num {
              float: left;
              width: 150px;
              height: 97px;
              line-height: 97px;
              text-align: center;
            }
            .subtotal {
              float: left;
              width: 120px;
              height: 97px;
              line-height: 97px;
              padding-right: 80px;
              text-align: right;
              color: #ff6700;
            }
            .action {
              float: left;
              width: 80px;
              height: 56px;
              padding-top: 41px;
              text-align: center;
              a {
                width: 20px;
                height: 20px;
                color: #757575;
                display: inline-block;
                text-align: center;
                background-color: rgba(255, 0, 0, 0);
                border-radius: 50%;
                transition: all 0.2s;
                &:hover {
                  background-color: rgb(255, 0, 0);
                  color: white;
                  border-radius: 50%;
                }
              }
            }
          }
          .gifts {
            padding-top: 10px;
            margin-bottom: -2px;
            margin-left: 100px;
            clear: both;
            .gifts-item {
              height: 48px;
              line-height: 48px;
              border: 1px solid #e0e0e0;
              padding-left: 20px;
              margin-bottom: -1px;
              color: #424242;
              cursor: pointer;
              .add {
                width: 20px;
                height: 20px;
                line-height: 16px;
                background-color: #ff5c00;
                color: #fff;
                font-weight: 900;
                border-radius: 50%;
                text-align: center;
                margin-top: 16px;
                font-size: 20px;
                display: inline-block;
              }
              p {
                display: inline-block;
                margin-left: 20px;
                span {
                  color: #ff5c00;
                }
              }
            }
          }
        }
      }
      .cart-cart-footer {
        height: 50px;
        background-color: #fff;
        margin-top: 20px;
        position: sticky;
        bottom: 0;
        .cart-footer-left {
          margin-left: 20px;
          color: #f5f5f5;
          float: left;
          a {
            color: silver !important;
            height: 50px;
            line-height: 50px;
            display: inline-block;
            padding: 0 15px;
            font-size: 14px;
          }
          p {
            height: 50px;
            line-height: 50px;
            display: inline-block;
            padding: 0 15px;
            font-size: 14px;
            color: silver;
            span {
              color: #ff5c00;
            }
          }
        }
        .cart-footer-clear {
          width: 200px;
          height: 50px;
          line-height: 50px;
          font-size: 18px;
          color: white;
          background-color: #ff6700;
          float: right;
          text-align: center;
          margin-left: 50px;
        }
        .cart-footer-price {
          float: right;
          span {
            height: 50px;
            line-height: 50px;
            color: #ff6700;
            em {
              font-style: normal;
              font-size: 30px;
            }
          }
        }
      }
    }
    .cart-bottom {
      position: relative;
      hr {
        margin-top: 60px;
        border: 0.5px solid #b0b0b0;
      }
      .recommend {
        position: absolute;
        width: 482px;
        height: 40px;
        left: 372px;
        top: -20px;
        font-size: 30px;
        text-align: center;
        background-color: #f5f5f5;
        color: #757575;
      }
      .recommend-list {
        margin-top: 50px;
        display: flex;
        flex-direction: row;
        justify-content: left;
        flex-wrap: wrap;
        .item {
          width: 234px;
          height: 300px;
          margin: 14px 0;
          background-color: white;
          text-align: center;
          overflow: hidden;
          position: relative;
          margin-right: 15px;
          img {
            display: block;
            margin: 40px auto 20px;
            width: 140px;
            height: 140px;
          }
          h3 {
            margin: 0 10px 10px;
            height: 18px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            color: #333;
            font-size: 14px;
            font-weight: normal;
          }
          span {
            margin-bottom: 10px;
            color: #ff6700;
            font-size: 14px;
            display: block;
          }
          p {
            color: #757575;
            font-size: 14px;
          }
          .addcart {
            position: absolute;
            width: 120px;
            height: 28px;
            line-height: 28px;
            cursor: pointer;
            border: 1px solid #ff6700;
            background-color: #fff;
            color: #ff6700;
            bottom: -40px;
            left: 55px;
            transition: all 0.2s;
            font-size: 14px;
            font-weight: normal;
          }
          &:hover {
            .addcart {
              bottom: 15px;
              &:hover {
                background-color: #ff6700;
                color: #fff;
              }
            }
          }
        }
      }
    }
  }
}

// 尾部
@import url(./footer.less);
